
public class MultipleChoiceQuestion extends Question
{

	public MultipleChoiceQuestion(String title, String text, String answer, String imageFile)
	{
		super(title, text, answer);
		this.imageFile = imageFile;
	}

	@Override
	public void print()
	{
		System.out.println("type - multiple choice");
		super.print();
		System.out.println("imageFile - " + imageFile);
		for(int i = 0; i < 4; ++i)
		{
			System.out.println("S" + Integer.toString(i + 1) + " - " + getSelection(i));
		}
		System.out.println("");
	}
	
	public String getSelection(int i)
	{
		if(i > -1 && i < 4)
		{
			return selection[i];
		}
		else
		{
			return new String();
		}
	}
	
	public void setSelection(int index, String selection)
	{
		if(index > -1 && index < 4)
		{
			this.selection[index] = selection;
		}
	}


	public String getImageFile()
	{
		return imageFile;
	}
	
	private String imageFile;
	private String[] selection = new String[4]; 
}
